Optimal. Leaf size=92 \[ \frac {a \sec ^4(e+f x)}{4 f}-\frac {a \sec ^2(e+f x)}{f}-\frac {a \log (\cos (e+f x))}{f}+\frac {b \sec ^7(e+f x)}{7 f}-\frac {2 b \sec ^5(e+f x)}{5 f}+\frac {b \sec ^3(e+f x)}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4138, 1802} \[ \frac {a \sec ^4(e+f x)}{4 f}-\frac {a \sec ^2(e+f x)}{f}-\frac {a \log (\cos (e+f x))}{f}+\frac {b \sec ^7(e+f x)}{7 f}-\frac {2 b \sec ^5(e+f x)}{5 f}+\frac {b \sec ^3(e+f x)}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1802
Rule 4138
Rubi steps
\begin {align*} \int \left (a+b \sec ^3(e+f x)\right ) \tan ^5(e+f x) \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {\left (1-x^2\right )^2 \left (b+a x^3\right )}{x^8} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\operatorname {Subst}\left (\int \left (\frac {b}{x^8}-\frac {2 b}{x^6}+\frac {a}{x^5}+\frac {b}{x^4}-\frac {2 a}{x^3}+\frac {a}{x}\right ) \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {a \log (\cos (e+f x))}{f}-\frac {a \sec ^2(e+f x)}{f}+\frac {b \sec ^3(e+f x)}{3 f}+\frac {a \sec ^4(e+f x)}{4 f}-\frac {2 b \sec ^5(e+f x)}{5 f}+\frac {b \sec ^7(e+f x)}{7 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.26, size = 87, normalized size = 0.95 \[ -\frac {a \left (-\tan ^4(e+f x)+2 \tan ^2(e+f x)+4 \log (\cos (e+f x))\right )}{4 f}+\frac {b \sec ^7(e+f x)}{7 f}-\frac {2 b \sec ^5(e+f x)}{5 f}+\frac {b \sec ^3(e+f x)}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.73, size = 81, normalized size = 0.88 \[ -\frac {420 \, a \cos \left (f x + e\right )^{7} \log \left (-\cos \left (f x + e\right )\right ) + 420 \, a \cos \left (f x + e\right )^{5} - 140 \, b \cos \left (f x + e\right )^{4} - 105 \, a \cos \left (f x + e\right )^{3} + 168 \, b \cos \left (f x + e\right )^{2} - 60 \, b}{420 \, f \cos \left (f x + e\right )^{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.10, size = 183, normalized size = 1.99 \[ \frac {\left (\tan ^{4}\left (f x +e \right )\right ) a}{4 f}-\frac {a \left (\tan ^{2}\left (f x +e \right )\right )}{2 f}-\frac {a \ln \left (\cos \left (f x +e \right )\right )}{f}+\frac {b \left (\sin ^{6}\left (f x +e \right )\right )}{7 f \cos \left (f x +e \right )^{7}}+\frac {b \left (\sin ^{6}\left (f x +e \right )\right )}{35 f \cos \left (f x +e \right )^{5}}-\frac {b \left (\sin ^{6}\left (f x +e \right )\right )}{105 f \cos \left (f x +e \right )^{3}}+\frac {b \left (\sin ^{6}\left (f x +e \right )\right )}{35 f \cos \left (f x +e \right )}+\frac {8 b \cos \left (f x +e \right )}{105 f}+\frac {b \cos \left (f x +e \right ) \left (\sin ^{4}\left (f x +e \right )\right )}{35 f}+\frac {4 b \cos \left (f x +e \right ) \left (\sin ^{2}\left (f x +e \right )\right )}{105 f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 73, normalized size = 0.79 \[ -\frac {420 \, a \log \left (\cos \left (f x + e\right )\right ) + \frac {420 \, a \cos \left (f x + e\right )^{5} - 140 \, b \cos \left (f x + e\right )^{4} - 105 \, a \cos \left (f x + e\right )^{3} + 168 \, b \cos \left (f x + e\right )^{2} - 60 \, b}{\cos \left (f x + e\right )^{7}}}{420 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.79, size = 227, normalized size = 2.47 \[ \frac {2\,a\,\mathrm {atanh}\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\right )}{f}-\frac {2\,a\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^{12}-14\,a\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^{10}+\left (32\,a+\frac {32\,b}{3}\right )\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^8+\left (\frac {16\,b}{3}-32\,a\right )\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6+\left (14\,a+\frac {16\,b}{5}\right )\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4+\left (-2\,a-\frac {16\,b}{15}\right )\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+\frac {16\,b}{105}}{f\,\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^{14}-7\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^{12}+21\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^{10}-35\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^8+35\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6-21\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4+7\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 8.41, size = 119, normalized size = 1.29 \[ \begin {cases} \frac {a \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {a \tan ^{4}{\left (e + f x \right )}}{4 f} - \frac {a \tan ^{2}{\left (e + f x \right )}}{2 f} + \frac {b \tan ^{4}{\left (e + f x \right )} \sec ^{3}{\left (e + f x \right )}}{7 f} - \frac {4 b \tan ^{2}{\left (e + f x \right )} \sec ^{3}{\left (e + f x \right )}}{35 f} + \frac {8 b \sec ^{3}{\left (e + f x \right )}}{105 f} & \text {for}\: f \neq 0 \\x \left (a + b \sec ^{3}{\relax (e )}\right ) \tan ^{5}{\relax (e )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________